// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import WorkPanel from "./WorkPanel"
import Progress from "./components/Progress"
Vue.config.productionTip = false
import store from "./Store"

//************Begin for components************
import {
  Button,
  Steps,
  Step,
  FormItem,
  Input,
  Icon,
  Form,
  Select,
  Option,
  Card
} from "iview"
import "./Theme/iview.less"



Vue.component("Button", Button)
Vue.component("Steps", Steps)
Vue.component("Step", Step)
Vue.component("FormItem", FormItem)
Vue.component("Input", Input)
Vue.component("Icon", Icon)
Vue.component("Form", Form)
Vue.component("Select", Select)
Vue.component("Option", Option)
Vue.component("Card", Card)
Vue.component("Progress", Progress)
//×*************End for components************

// import VueAwesomeSwiper from "vue-awesome-swiper"
// Vue.use(VueAwesomeSwiper)

import { bootApplication } from "./boot";

const root = new Vue({
  name: "Root vue instance",
  el: '#app',
  router,
  components: {
    WorkPanel,
  },
  template: '<WorkPanel></WorkPanel>',
  store,
  created() {
    bootApplication();
  }
})


const productionMode = process.env.NODE_ENV !== "production"
Vue.config.silent = productionMode
Vue.config.devtools = productionMode
Vue.config.performance = productionMode
